import axios from "../src/utils/http";
//获取轮播图数据
export function getSlideShow(num){
    return axios.get(`/api/weChat/applet/course/banner/list?number=${num}`)
}
//根据课程类型获取数据
export function getCourseListByType(type,pageSize,pageNum){
    let obj = new URLSearchParams();
    obj.append("type",type);
    obj.append("pageSize",pageSize);
    obj.append("pageNum",pageNum)
    return axios.post("/api/weChat/applet/course/list/type",obj);
}
export function getCourseList(){
    let obj = {
        "enable":"1"
    }
    return axios.post("/api/weChat/applet/subject/list",obj)
}
//首页底部友情链接
export function getFriendLink(){
    let obj = new URLSearchParams();
    obj.append("dictType","blogroll");
    return axios.post("/api/system/dict/data/list/open",obj);
}